package com.feige.service;

import com.feige.pojo.UserRole;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 用户角色表 服务类
 * </p>
 *
 * @author feige
 * @since 2020-07-20
 */
public interface UserRoleService extends IService<UserRole> {

    //根据用户ID获取对应权限
    List<Long> getRoleId(Long userId);

    //给用户分配权限
    boolean AssignRoles(Long userId,Long[] roleIds);
}
